package com.tyl.builder建造者模式.demo;
//具体的建造者：工人
public class Werker extends Builder {
    private Porduct porduct;

    public Werker() {
       porduct=new Porduct();
    }

    @Override
    void buildeA() {
        porduct.setBudeilA("地基");
        System.out.println("地基");
    }

    @Override
    void buildeB() {
        porduct.setBudeilB("钢筋");
        System.out.println("钢筋");
    }

    @Override
    void buildeC() {
        porduct.setBudeilC("铺电线");
        System.out.println("铺电线");
    }

    @Override
    void buildeD() {
        porduct.setBudeilD("粉刷");
        System.out.println("粉刷");
    }

    @Override
    Porduct getPorduct() {
        return porduct;
    }
}
